from interfact import Event


class TestEvent:
    def __int__(self):
        self.event = Event()

    def test_add_event(self):
        data = {
            'eid': 12222,
            'name': 'requests发布会91',
            'limit': 3,
            'status': 1,
            'address': 'A4教室',
            'start_time': '2023-7-31 12:30:30'
        }
        result = self.event.add_event(data)
        print(result)
        status = result.get('status_code')
        assert status ==200
        print(status)
        back_code = result.get('body').get('status')
        assert status == 10200
        print(back_code)

# if __name__ == '__main__':
#     ...
